/**
 *	@project:	kybernetes
 *	@author:	D.Toepel
 *	@note:		---
 *	
 *	Copyright (C) 2009  D.Toepel <de.dtools> {at} <gmail> {dot} <com>
 *	
 *	This program is free software: you can redistribute it and/or modify
 *	it under the terms of the GNU General Public License as published by
 *	the Free Software Foundation, either version 3 of the License, or
 *	(at your option) any later version.
 *	
 *	This program is distributed in the hope that it will be useful,
 *	but WITHOUT ANY WARRANTY; without even the implied warranty of
 *	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *	GNU General Public License for more details.
 *	
 *	You should have received a copy of the GNU General Public License
 *	along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *	
 */
package dt.htwk.panels;

import java.awt.CardLayout;
import java.util.Hashtable;

import javax.swing.JPanel;

import dt.htwk.extras.LanguageTools;
import dt.htwk.extras.WeatherSimulation;

/**
 * <h3>KCToolPanel</h3>
 *
 * @author DToepel
 * 
 */
public class KCToolPanel extends JPanel {
	
/* ****************************************************
 * Deklaration der Variablen und Komponenten
 * ***************************************************/
	
	/**
	 * serialVersionUID -- Standard: 1L
	 */
	private static final long serialVersionUID = 1L;
	
	/**
	 * 
	 */
	private static Hashtable<String, String> lng;
	
	/**
	 * 
	 */
	private static Boolean loggedIn = false;
	
	

/* ****************************************************
 * Aufruf des Konstruktors
 * ***************************************************/

	/**
	 * @param lng
	 */
	public KCToolPanel(Hashtable<String, String> lng){
	 
		
		super(new CardLayout());
		KCToolPanel.lng = lng;
		initGUI();
	}
	
/* ****************************************************
 * PUBLIC - oeffentliche Methoden
 * ***************************************************/

	/**
	 * Aufruf-String fuer Panel zur Beobachtung
	 */
	public static String GuestPanel = "GuestPanel";
	
	/**
	 * Aufruf-String fuer Regatta-Archiv
	 */
	public static String ArchivPanel = "ArchivPanel";
	
	/**
	 * Aufruf-String fuer Panel zur Wetter-Simulation
	 */
	public static String Simulation = "Simulation";
	
	/**
	 * Aufruf-String fuer Panel zur Sprachverwaltung
	 */
	public static String LngPanel = "LngPanel";
	
	/**
	 * <h3>showCard</h3>
	 *
	 * @param id
	 */
	public void showCard(String id){
		CardLayout cl = (CardLayout)(this.getLayout());
		cl.show(this, id);
	}
	

/* ****************************************************
 * PRIVATE - nicht-oeffentliche Methoden
 * ***************************************************/

	/**
	 * <h3>initGUI</h3>
	 *
	 */
	private void initGUI(){
		this.add(new RegattaArchiv(lng), ArchivPanel);
		this.add(new LanguageTools(lng), LngPanel);
		this.add(new WeatherSimulation(lng), Simulation);
	}


}
